package cn.stylefeng.guns.sys.modular.system.db4.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 团队表
 * </p>
 * @author
 * @since
 */
@TableName("biz_team")
@Data
public class Team implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 团队主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 手机号
     */
    @TableField("mobile")
    private String mobile;

    /**
     * 职级名称(参考字典表)
     */
    @TableField("rank_name")
    private String rankName;

    /**
     * 上级团队
     */
    @TableField("pid")
    private Long pid;

    /**
     * 状态（字典 0正常 1停用 2删除）
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 修改人
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 职级编码
     */
    @TableField("rank_code")
    private String rankCode;

    /**
     * 上级团队V
     */
    @TableField("pid_view")
    private String pidView;

    /**
     * 所有父类主键id
     */
    @TableField("pids")
    private String pids;

    /**
     * 菜单层级
     */
    @TableField("levels")
    private Integer levels;

    /**
     * 原手机号
     */
    @TableField("old_tels")
    private String oldTels;

    public String getOldTels() {
        return oldTels;
    }

    public void setOldTels(String oldTels) {
        this.oldTels = oldTels;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRankName() {
        return rankName;
    }

    public void setRankName(String rankName) {
        this.rankName = rankName;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    public String getRankCode() {
        return rankCode;
    }

    public void setRankCode(String rankCode) {
        this.rankCode = rankCode;
    }

    public String getPidView() {
        return pidView;
    }

    public void setPidView(String pidView) {
        this.pidView = pidView;
    }

    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }

    public Integer getLevels() {
        return levels;
    }

    public void setLevels(Integer levels) {
        this.levels = levels;
    }

    @Override
    public String toString() {
        return "Team{" +
        "id=" + id +
        ", name=" + name +
        ", mobile=" + mobile +
        ", rankName=" + rankName +
        ", pid=" + pid +
        ", status=" + status +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        ", rankCode=" + rankCode +
        ", pidView=" + pidView +
        ", pids=" + pids +
        ", levels=" + levels +
        "}";
    }
}
